package pl.edu.agh.mguesser.concurrent;

import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * @author keiran
 */
public class ExecutorFactory {
    
    public Executor createFixedThreadPool(int poolSize, ThreadFactoryBuilder threadFactoryBuilder) {
        return Executors.newFixedThreadPool(poolSize, threadFactoryBuilder.build());
    }
    
}
